
<g:if test="${dataList.size() > 0}">

    <meta charset="utf-8">
    <style type="text/css">
    th{
        width: 9em;
    }
    tr,td{
        border: 1px #ADBFCD solid;
    }
    .odd{
        background-color: #EBEBEB;
    }
    .xl70
    {mso-style-parent:style0;
        mso-number-format:"yyyy/m/d\\ h:mm:ss";
        white-space:normal;
        font-size:10.0pt;
        font-family:Arial Unicode MS;
        mso-font-charset:134;
        border:1.0pt solid #ADBFCD;}
</style>

    <table class="table table-bordered table-hover table-striped table-top" data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50" align="center" rowspan="2">No.</th>
            <th width="290" align="center" rowspan="2">工步</th>
            <g:each in="${dayList}" status="i" var="dataInstance">
                <th width="50" align="center" colspan="3">${dataInstance}</th>
            </g:each>
            <th width="250"  colspan="3" align="center">总计</th>
        </tr>
        <tr>
            <g:each in="${dayList}" status="i" var="dataInstance">
                <th width="70" align="center">投入数</th>
                <th width="70" align="center">产出数</th>
                <th width="70" align="center">良率</th>
            </g:each>
            <th width="70" align="center">投入数</th>
            <th width="70" align="center">产出数</th>
            <th width="70" align="center">良率</th>
        </tr>
        </thead>
        <tbody>
        <g:each in="${stepInOutYield1}" status="i" var="dataInstance">
            <tr>
                <td>${i+1}</td>
                <td>${dataInstance.STEP_DESC}</td>
                <g:each in="${dayList}" status="j" var="dataInstance1">
                    <td>${dataInstance["${dataInstance1}~TRACK_IN_MAIN_QTY"]}</td>
                    <td>${dataInstance["${dataInstance1}~TRACK_OUT_MAIN_QTY"]}</td>
                    <g:if test="${dataInstance["${dataInstance1}~YIELD"]==null}">
                        <td></td>
                    </g:if>
                    <g:else>
                        <td>${dataInstance["${dataInstance1}~YIELD"]}%</td>
                    </g:else>
                </g:each>
                <g:each in="${stepInOutYield2}" status="w" var="dataInstance4">
                    <g:if test="${dataInstance.STEP_DESC==dataInstance4.STEP_DESC}">
                        <td align="center" >${dataInstance4.TRACK_IN_MAIN_QTY}</td>
                        <td align="center" >${dataInstance4.TRACK_OUT_MAIN_QTY}</td>
                        <td align="center" >${dataInstance4.yield}%</td>
                    </g:if>
                </g:each>
            </tr>
        </g:each>

        </tbody>
    </table>
</g:if>
